from custom_logger import CustomLogger

def func_in_module2(thread_id, log_file=None):
    """
    Function in Module2 for testing CustomLogger.

    Args:
        thread_id (int): The ID of the thread.
        log_file (str, optional): The log file path. Defaults to None.
    """
    my_logger = CustomLogger(f'Thread-{thread_id}')
    if log_file:
        my_logger.set_log_file(log_file)

    for i in range(1, 6):
        message = f"Thread {thread_id} - Message {i}"
        my_logger.info(message)
